package phaseII;

public class Symbol 
{
	private String symbolName;
	
	public static final Symbol EPSILON = new Symbol("EPSILON");
	
	public Symbol(String name)
	{
		symbolName = name;
	}
	@Override
	public boolean equals (Object s)
	{
		if ((((Symbol)s).toString()).equals(this.toString()))
			return true;
		else
			return false;
	}
	
	public String toString()
	{
		return symbolName;
	}
	@Override
	public int hashCode()
	{
		return this.toString().hashCode();
	}
}
